package com.csd.action.project;

import java.util.List;

import com.csd.helper.ActionResult;
import com.csd.pojo.Project;
import com.csd.serviceImpl.ProjectService;

/**
 * 
 * 项目信息展示Action类
 * 
 * @author 尹华彬
 * @version 1.0
 * 
 * <br>
 *          修订时间：2009-12-17 <br>
 *          修改原因：创建文件 <br>
 *          修改人：胡夏
 * 
 * <br>
 * 
 */
public class WelcomeTeamProjectInfoShowAction {
	// 项目ID
	
	private Project project;
	
	private String stage;
	
	private Integer evaluateItemID;
	
    public String getStage() {
		return stage;
	}

	public void setStage(String stage) {
		this.stage = stage;
	}

	public Integer getEvaluateItemID() {
		return evaluateItemID;
	}

	public void setEvaluateItemID(Integer evaluateItemID) {
		this.evaluateItemID = evaluateItemID;
	}

	public String getReturnpage() {
		return returnpage;
	}

	public void setReturnpage(String returnpage) {
		this.returnpage = returnpage;
	}

	private ProjectService projectService;
    private String returnpage;
    
	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}


	public ProjectService getProjectService() {
		return projectService;
	}

	public void setProjectService(ProjectService projectService) {
		this.projectService = projectService;
	}

	public String execute() {
		// 通过项目ID查出项目详细信息
		String result = ActionResult.fail;
		

		List list = projectService.listTeamProject();
		
		if(list != null && list.size()>0)
		{
			project = (Project)list.get(0);
		}else
		{
			project = null;
		}
		
		
		result = ActionResult.success;
		
        return result;
	}

	
}
